export function transformRoute(data,ary){
    if(data instanceof Array){
        if(data.length>0){
            data.forEach(item=>{
                if(item.children&&item.children.length>0){
                    transformRoute(item.children,ary)
                }else{
                    ary.push(item)
                }
            })
        }
    }
}